package rune.effect;

/**
 * Model for one certain effect on runes.
 * 
 * An effect has a type e.g. ability power, attack damage, mana per 5, etc.
 * a value and a variation on its value.
 * 
 * 
 * @author Miky
 * @version $Id: RuneEffect.java 25 2013-04-06 23:09:20Z mikael.beyene $
 * @see {@link EffectType} {@link EffectVariation}
 */
public class RuneEffect {
	
	private final EffectType type;
	private final EffectVariation variation;
	private final double value;
	private final boolean percentual;
	
	/**
	 * @param type
	 * @param variation
	 */
	public RuneEffect(EffectType type, EffectVariation variation, double value, boolean percentual) {
		this.type = type;
		this.variation = variation;
		this.value = value;
		this.percentual = percentual;
	}
	
	public EffectType getType() {
		return type;
	}
	
	public EffectVariation getVariation() {
		return variation;
	}
	
	public double getValue() {
		return value;
	}
	
	public boolean isPercentual() {
		return percentual;
	}
}